package com.example.lwt.hellogit;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class ReceiveMessageActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_receive_message);

        TextView textView = (TextView) findViewById(R.id.msg_received);
        textView.setText(getIntent().getStringExtra("msg"));
    }

    public void goBackMainActivity(View view) {
        Intent mainac = new Intent(this, MainActivity.class);
        startActivity(mainac);
    }
}
